# coding: utf-8

from django.db import models


class Posts ( models.Model ):
    title = models.CharField ( u'Заголовок поста', max_length = 100, blank = True )
    teaser = models.TextField ( u'Анонос поста', blank = True )
    text = models.TextField ( 'Текст поста', blank = True )
    datetime = models.DateField ( u'Дата создания поста', auto_now_add = True, blank=True )
    
    def __unicode__ ( self ):
        return u'%s, %s, %s' % ( self.title, self.teaser, self.text )
        
    class Meta:
        verbose_name_plural = u'Запись'
        verbose_name = u'Запись'

# EOF
